/*********************************************************
          File Name:10.24.cpp
          Author: Abby Cin
          Mail: abbytsing@gmail.com
          Created Time: Mon 14 Mar 2016 06:33:22 PM CST
**********************************************************/

#include <algorithm>
#include <iostream>
#include <string>
#include <vector>
#include <functional>

using namespace std;
using namespace std::placeholders;

bool check(const string &s, size_t size)
{
    return size > s.size();
}

int main()
{
    vector<int> vi{1, 2, 3, 4, 5, 6, 7, 8};
    string s{"test"};

    auto iter = find_if(vi.begin(), vi.end(), bind(check, s, _1));
    
    cout << *iter << endl;
}
